var index = require('../controllers/index');
var pub = require('../controllers/pub');
module.exports = function(app){
  app.get('/api/index/getIndexItem', index.getIndexItem);
  app.get('/api/index/getLeaderItem', index.getLeaderItem);
  app.get('/api/index/getLeader', index.getLeader);
  app.post('/api/pub/managerLogin', pub.managerLogin);
  app.get('/api/pub/checkLogin', pub.checkLogin);
  app.post('/api/pub/getSchedule', pub.getSchedule);
  app.post('/api/pub/addSchedule', pub.addSchedule);
  app.post('/api/pub/getFutureSchedule', pub.getFutureSchedule);
  app.post('/api/pub/getLeaderForId', pub.getLeaderForId);
  app.post('/api/pub/getLeaderForId', pub.getLeaderForId);
  app.post('/api/pub/deleteTimeline', pub.deleteTimeline);
  app.post('/api/pub/updateTimeline', pub.updateTimeline);
  }
